#include "GameUI.h"
#include "generateMonster.h"
#include <iostream>

void VillageShopMenu()
{
	std::cout << "---- 商店 ----" << std::endl;
	std::cout << "--- 1.木剑 " << std::endl;
	std::cout << "--- 2.石剑 " << std::endl;
	std::cout << "--- 3.铁剑 " << std::endl;
	std::cout << "--- 4.棉衣 " << std::endl;
	std::cout << "--- 5.木甲 " << std::endl;
	std::cout << "--- 6.铁甲 " << std::endl;
	std::cout << "--- 7.手镯 " << std::endl;
	std::cout << "--- q.返回 " << std::endl;
}

void ReadPlayerMenu()
{
	std::cout << "****************" << std::endl;
	std::cout << "*** 1.存档1 ****" << std::endl;
	std::cout << "*** 2.存档2 ****" << std::endl;
	std::cout << "*** 3.存档3 ****" << std::endl;
	std::cout << "*** q.返回  ****" << std::endl;
	std::cout << "****************" << std::endl;
}

void SavePlayerMenu()
{
	std::cout << "****************" << std::endl;
	std::cout << "*** 1.存档1 ****" << std::endl;
	std::cout << "*** 2.存档2 ****" << std::endl;
	std::cout << "*** 3.存档3 ****" << std::endl;
	std::cout << "*** q.返回  ****" << std::endl;
	std::cout << "****************" << std::endl;
}

void PlainMenu()
{
	std::cout << "========================" << std::endl;
	std::cout << "===== a.休息(可能被袭击) " << std::endl;
	std::cout << "===== s.寻找            " << std::endl;
	std::cout << "===== d.修建            " << std::endl;
	std::cout << "===== f....          " << std::endl;
	std::cout << "===== q.退出          " << std::endl;
	std::cout << "=====================" << std::endl;
}

void VillageMenu()
{
	std::cout << "=====================" << std::endl;
	std::cout << "===== a.休息         " << std::endl;
	std::cout << "===== s.进入商店     " << std::endl;
	std::cout << "===== d.市场         " << std::endl;
	std::cout << "===== f....          " << std::endl;
	std::cout << "===== q.退出          " << std::endl;
	std::cout << "=====================" << std::endl;
}

char charMap(MonsterRegionType type)
{
	switch (type)
	{
	case MonsterRegionType::Nothing:
		return '.';
	case MonsterRegionType::Simple:
		return 'A';
	case MonsterRegionType::Ordinary:
		return 'B';
	case MonsterRegionType::Difficulty:
		return 'C';
	}
}

void NewGame()
{
	std::cout << "--------------\n";
	std::cout << "- 1. 检查状态  \n";
	std::cout << "- 2. 打开背包  \n";
	std::cout << "- 3. 查看地图  \n";
	std::cout << "- 4. 进入区域  \n";
	std::cout << "- 5. 保存进度  \n";
	std::cout << "- q. 返回菜单  \n";
	std::cout << "- 移动键：e:上 d:下 s:左 f:右    \n";
	std::cout << "--------------\n";
}

void ContinueGame()
{
	ReadPlayerMenu();
}

void GameSet()
{
	;
}

void GameMenu()
{
	std::cout << "=============\n";
	std::cout << "= 文字冒险    \n";
	std::cout << "= a.新游戏    \n";
	std::cout << "= s.继续游戏  \n";
	std::cout << "= d.设置      \n";
	std::cout << "= q.退出游戏  \n";
	std::cout << "=============\n";
}
